const MicroConfig = [
  //name: 微应用的名称,
  //entry: 微应用的入口,
  //container: 微应用的容器节点的选择器或者 Element 实例,
  //activeRule: 激活微应用的规则(可以匹配到微应用的路由),
  //loader: 加载微应用的状态 true | false
  // {
  //   name: 'demo',
  //   entry: 'http://localhost:10087',
  //   container: '#micro-app-container',
  //   activeRule: '/microApp/history/demo',
  //   // activeRule: (location: Location) => {
  //   //   console.log(location);
  //   //   return location.pathname.startsWith('/mircoApp/demo/');
  //   // },
  //   loader: (loading: boolean) => {
  //     console.log('micro app demo loading status', loading);
  //   },
  // },
  // {
  //   name: 'vue3',
  //   entry: 'http://localhost:10086',
  //   container: '#micro-app-container',
  //   activeRule: '/microApp/vue3',
  //   // activeRule: (location: Location) => {
  //   //   console.log(location);
  //   //   return location.pathname.startsWith('/mircoApp/demo/');
  //   // },
  //   loader: (loading: boolean) => {
  //     console.log('micro app vue3 loading status', loading);
  //   },
  // },
  {
    name: "vue2",
    entry: "http://localhost:8080",
    container: "#micro-app-container",
    activeRule: "/microApp/vue2",
    // activeRule: (location: Location) => {
    //   console.log(location);
    //   return location.pathname.startsWith('/mircoApp/demo/');
    // },
    loader: (loading: boolean) => {
      console.log("micro app vue2 loading status", loading);
    }
  }
];

export { MicroConfig };
